package com.woniuxy.education.mapper;

import com.woniuxy.education.entity.Perm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PermMapper {
    @Select("select * from role_perms rp,perms p where rp.pid = p.pid and rp.rid=#{rid}")
    public List<Perm> findPermsByRid(int rid);
}
